package org.jiefei.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value = "/example")
public class ExampleController {

	@RequestMapping(value = "/hello", method = RequestMethod.GET)
	public void hello() {
		System.out.println("hello");
	}

	@RequestMapping(value = "/rock", method = RequestMethod.GET)
	public void rock() {
		System.out.println("rock");
	}

}
